The Reduction of Binary Trees by Means of an Input-Restricted Deque
نویسنده
چکیده
— In this paper we present a class ofalgorithms for the réduction ofbinary trees. Each algorithm Dk uses an input-restricted deque of length k and an auxiliary store. Dk is a possible generalization of the customary method for the réduction of a tree by means of a stack. We shall show that the number of binary trees with n leaves which can be reduced by algorithm Dk with at most i auxiliary cells is equal to the number of all trees with n leaves which can be reduced with a stack of maximum length (k + l ) ( i+ 1)— 1. The corresponding sets are different. This fact implies that an algorithm Dk reduces all binary trees with n leaves if and only if Dk has at least [n/(k + \)l auxiliary cells. Finally, we shall present a detailed average case analysis of the space complexity o f an algorithm Dk. Résumé. — Dans cet article nous présentons une classe d'algorithmes pour la réduction d'arbres binaires. Chaque algorithme Dk utilise une double queue avec restriction d'entrée de longueur k et une mémoire auxiliaire. Dk est une des généralisations possibles de la méthode habituelle de réduction d'un arbre à Y aide d'une pile. Nous montrons que le nombre a"arbres binaires à n feuilles qui peuvent être réduits par l'algorithme Dk avec au plus i cellules mémoire auxiliaires est égal au nombre de tous les arbres à n feuilles qui peuvent être réduits avec une pile de hauteur au plus (k + 1) (i + 1) — 1. Les ensembles correspondants sont différents. Ce fait implique qu'un algorithme Dk réduit tous les arbres binaires à n feuilles si Dk a au moins [n/(k + l)j cellules auxiliaires. Finalement, nous présentons une analyse détaillée de la complexité en espace moyenne d'un algorithme Dk.
منابع مشابه
Multi-Splay Trees
In this thesis, we introduce a new binary search tree data structure called multi-splay tree and prove that multi-splay trees have most of the useful properties different binary search trees (BSTs) have. First, we demonstrate a close variant of the splay tree access lemma [ST85] for multi-splay trees, a lemma that implies multi-splay trees have the O(log n) runtime property, the static finger p...
متن کاملOn the sequential access theorem and deque conjecture for splay trees
We give a new, simple proof for the sequential access theorem for splay trees. For an n-node splay tree, our bound on the number of rotations is 4:5n, with a smaller constant than the bound of 10:8n concluded by Tarjan. We extend our proof to prove the deque conjecture for output-restricted deques. Our proofs provide additional insights into the workings of splay trees. c © 2004 Elsevier B.V. A...
متن کاملThesis Proposal: Multi-Splay Trees
In this thesis, we introduce multi-splay trees (MSTs) and prove several results demonstrating that MSTs have most of the useful properties different BSTs have. First, we prove a close variant of the splay tree access lemma [ST85] for multi-splay trees, a lemma that implies MSTs have the O(log n) runtime property, the static finger property, and the static optimality property. Then, we extend th...
متن کاملGreedy Is an Almost Optimal Deque
In this paper we extend the geometric binary search tree (BST) model of Demaine, Harmon, Iacono, Kane, and Pǎtraşcu (DHIKP) to accommodate for insertions and deletions. Within this extended model, we study the online Greedy BST algorithm introduced by DHIKP. Greedy BST is known to be equivalent to a maximally greedy (but inherently offline) algorithm introduced independently by Lucas in 1988 an...
متن کاملA New Heuristic Algorithm for Drawing Binary Trees within Arbitrary Polygons Based on Center of Gravity
Graphs have enormous usage in software engineering, network and electrical engineering. In fact graphs drawing is a geometrically representation of information. Among graphs, trees are concentrated because of their ability in hierarchical extension as well as processing VLSI circuit. Many algorithms have been proposed for drawing binary trees within polygons. However these algorithms generate b...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- ITA
دوره 17 شماره
صفحات -
تاریخ انتشار 1983